/*-
 * $Id: DownloadUnit.java 4 2010-11-04 07:39:56Z andrewbass $
 */

package com.google.code.getwrong;

import java.io.File;

/**
 * @author Andrew ``Bass'' Shcheglov (andrewbass@gmail.com)
 * @author $Author: andrewbass $
 * @version $Revision: 4 $, $Date:: 2010-11-04 07:39:56 +0000 #$
 */
final class DownloadUnit {
	private final File inFile;

	/**
	 * Cached file length.
	 */
	private final long inFileLength;

	private final File outDir;

	/**
	 * @param inFile
	 * @param outDir
	 */
	DownloadUnit(final File inFile, final File outDir) {
		this.inFile = inFile;
		this.inFileLength = inFile.length();
		this.outDir = outDir;
	}

	public File getInFile() {
		return this.inFile;
	}

	public long getInFileLength() {
		return this.inFileLength;
	}

	public File getOutDir() {
		return this.outDir;
	}
}
